package com.tledu.spring.service.impl;

import com.tledu.spring.dao.PlanMapper;
import com.tledu.spring.domain.Plan;
import com.tledu.spring.service.IPlanService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@AllArgsConstructor
public class PlanServiceImpl implements IPlanService {
    private final PlanMapper planMapper;
    @Override
    public List<Plan> query(Plan plan) {
        return planMapper.query(plan);
    }

    @Override
    public void insert(Plan plan) {
        int i = planMapper.insert(plan);
    }

    @Override
    public void delete(Integer pl_id) {
        planMapper.delete(pl_id);
    }

    @Override
    public void update(Plan plan) {
        planMapper.update(plan);
    }

    @Override
    public Plan selectByPl_Id(Integer pl_id) {
        return planMapper.selectByPl_Id(pl_id);
    }

}
